package cnpm02.j2ee.group3.model;

import java.io.Serializable;

public class PhoneNumber implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private String nationalCode;
	private String number;
	
	public PhoneNumber(){
	}
	
	public PhoneNumber(String nationalCode, String number) {
		this.nationalCode = nationalCode;
		this.number = number;
	}
	
	public void setNationalCode(String nationalCode) {
		this.nationalCode = nationalCode;
	}
	
	public String getNationalCode() {
		return nationalCode;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public String getNumber() {
		return number;
	}
	
	@Override
	public String toString() {
		return "+" + nationalCode + number;
	}
}
